﻿namespace ScrumLite.Services.Contracts
{
    using System;
    using System.Runtime.Serialization;

    [DataContract]
    public class DefectPage
    {
        [DataMember]
        public int NoPage { get; set; }

        [DataMember]
        public int NoPages { get; set; }

        [DataMember]
        public Defect[] Defects { get; set; }
    }

    [DataContract]
    public class Defect
    {
        [DataMember]
        public Guid Id { get; set; }

        [DataMember]
        public int Moniker { get; set; }

        [DataMember]
        public Guid DeliverableId { get; set; }

        [DataMember]
        public string Title { get; set; }

        [DataMember]
        public int DaysOpen { get; set; }

        [DataMember]
        public string Notes { get; set; }

        [DataMember]
        public string Decision { get; set; }

        [DataMember]
        public string CreatedBy { get; set; }

        [DataMember]
        public int Severity { get; set; }

        [DataMember]
        public DateTime? TriagedOn { get; set; }

        [DataMember]
        public bool Triaged { get; set; }

        [DataMember]
        public DateTime CreatedOn { get; set; }
    }
}
